package com.amigo.online.common.param.dto.video;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

public class MusicDto {
	
	@NotBlank(message="名称不能为空！")
	private String name;
	
	@NotBlank(message="不能为空！")
	private String music;
	
	@Min(0)
	@Digits(integer=10,fraction=0)
	private Integer category;
	
	@Length(min = 0, max = 200)
	private String cover;
	
	@Min(0)
	@Digits(integer=4,fraction=0)
	private Integer recommended;
	
	@Digits(integer=20,fraction=0)
	private Long videoId;
	
	@Min(0)
	@Digits(integer=10,fraction=0)
	private Integer used;
	
	@Min(0)
	@Digits(integer=10,fraction=0)
	private Integer type;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMusic() {
		return music;
	}
	public void setMusic(String music) {
		this.music = music;
	}
	public Integer getCategory() {
		return category;
	}
	public void setCategory(Integer category) {
		this.category = category;
	}
	public String getCover() {
		return cover;
	}
	public void setCover(String cover) {
		this.cover = cover;
	}
	public Integer getRecommended() {
		return recommended;
	}
	public void setRecommended(Integer recommended) {
		this.recommended = recommended;
	}
	public Long getVideoId() {
		return videoId;
	}
	public void setVideoId(Long videoId) {
		this.videoId = videoId;
	}
	public Integer getUsed() {
		return used;
	}
	public void setUsed(Integer used) {
		this.used = used;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
}
